#include <stdio.h>
#include <stdlib.h>

void function1()
{
	int a, b, c, d, e;
	for (a = 1; a <= 5; a++)
		for (b = 1; b <= 5; b++)
			for (c = 1; c <= 5; c++)
				for (d = 1; d <= 5; d++)
					for (e = 1; e <= 5; e++)
						if (((b == 2) + (a == 3)) == 1 &&
							((b == 2) + (c == 4)) == 1 &&
							((c == 1) + (d == 2)) == 1 &&
							((c == 5) + (d == 3)) == 1 &&
							((e == 4) + (a == 1)) == 1 &&
							a*b*c*d*e == 120)
						{
							printf("A=%d B=%d C=%d D=%d E=%d\n", a, b, c, d, e);
							break;
						}
}

void function2()
{
	char killer;
	for (killer = 'A'; killer <= 'D'; killer++)
	{
		if ((killer != 'A') + (killer == 'C') + (killer == 'D') + (killer != 'D') == 3)
			printf("killer is %c\n", killer);
	}
}

int main()
{
	//function1();
	function2();
	system("pause");
	return 0;
}